﻿using Swimj.DomainLib.Entities;

namespace BaseData.DomainLib.AggregatesModel.WarehouseAggregate;

public class Warehouse : AuditableAggregateRoot<int>
{
    public string? Code { get; set; }

    public string? Name { get; set; }

    public int WarehouseType { get; set; }

    public string? Address { get; set; }

    public string? Description { get; set; }

    public Warehouse()
    {
        
    }

    public Warehouse(string? code, string? name, int warehouseType, string? address, string? description)
    {
        Code = code;
        Name = name;
        WarehouseType = warehouseType;
        Address = address;
        Description = description;
    }

    public void Update(string? code, string? name, int warehouseType, string? address, string? description)
    {
        Code = code;
        Name = name;
        WarehouseType = warehouseType;
        Address = address;
        Description = description;
    }
}